package com.ChengXiZi.mapper;

import com.ChengXiZi.dto.PostPageDTO;
import com.ChengXiZi.entity.Post;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PostMapper {

    /**
     * 向post表内写入新记录
     * @param post
     */
    void insert(Post post);

    /**
     * 分页查询
     * @param postPageDTO
     * @return
     */
    Page<Post> pageQuery(PostPageDTO postPageDTO);
}
